package com.csi.okr.mobile.common.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 员工组织信息表
 *
 */

@Entity
@Table(name = "V_OKR_EMPL_ORG", schema = "PSGIS")
public class VOkrEmplOrg implements Serializable {

	private static final long serialVersionUID = 1L;

	private String orgCode;
	private String emplCode;
	private Integer isOkr;
	private Integer isLeader;
	private Integer isOkrCheck;
	private String postCode;
	private Integer isBelong;

	@Id
	@Column(name = "EMPL_CODE")
	public String getEmplCode() {
		return emplCode;
	}

	public void setEmplCode(String emplCode) {
		this.emplCode = emplCode;
	}

	@Column(name = "ORG_CODE")
	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	@Column(name = "IS_OKR")
	public Integer getIsOkr() {
		return isOkr;
	}

	public void setIsOkr(Integer isOkr) {
		this.isOkr = isOkr;
	}

	@Column(name = "IS_LEADER")
	public Integer getIsLeader() {
		return isLeader;
	}

	public void setIsLeader(Integer isLeader) {
		this.isLeader = isLeader;
	}

	@Column(name = "IS_OKR_CHECKER")
	public Integer getIsOkrCheck() {
		return isOkrCheck;
	}

	public void setIsOkrCheck(Integer isOkrCheck) {
		this.isOkrCheck = isOkrCheck;
	}

	@Column(name = "POST_CODE")
	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	@Column(name = "IS_BELONG")
	public Integer getIsBelong() {
		return isBelong;
	}

	public void setIsBelong(Integer isBelong) {
		this.isBelong = isBelong;
	}

//	private List<VOkrEmpl> emplList;
//
//	@OneToMany(fetch = FetchType.EAGER)
//	@JoinColumn(name = "EMPL_CODE", referencedColumnName = "EMPL_CODE", insertable = false, updatable = false)
//	@Where(clause = "EMPL_STATUS=1")
//	public List<VOkrEmpl> getEmplList() {
//		return emplList;
//	}
//
//	public void setEmplList(List<VOkrEmpl> emplList) {
//		this.emplList = emplList;
//	}
//
//	private VOkrOrg okrOrg;
//
//	@OneToOne(fetch = FetchType.EAGER)
//	@JoinColumn(name = "ORG_CODE", referencedColumnName = "ORG_CODE", insertable = false, updatable = false)
//	public VOkrOrg getOkrOrg() {
//		return okrOrg;
//	}
//
//	public void setOkrOrg(VOkrOrg okrOrg) {
//		this.okrOrg = okrOrg;
//	}

}
